package com.action.entity.params;

import com.base.app_core.util.AppConstants;
import com.base.app_core.util.Preferences;
import com.blankj.utilcode.util.StringUtils;

import javax.inject.Inject;
import javax.inject.Singleton;

/**
 * Created by jiansheng.li on 2018/5/31.
 */
@Singleton
public class WithDepositParam {

	private int type;//0表示微信，1表示支付宝
	private String aliAccount;//阿里账号
	private String realName;//真实名称
	private String stockCount;//提现股数
	private String depositMoney;//提现金额

	@Inject
	public  WithDepositParam(){

	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getAliAccount() {
		if (StringUtils.isEmpty(aliAccount)){
			return Preferences.getDefault().getString(AppConstants.SP.ALI_ACCOUNT,null);
		}
		return aliAccount;
	}

	public void setAliAccount(String aliAccount) {
		this.aliAccount = aliAccount;
	}

	public String getRealName() {
		if (StringUtils.isEmpty(realName)){
			return Preferences.getDefault().getString(AppConstants.SP.USER_REALNAME,null);
		}
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getStockCount() {
		return stockCount;
	}

	public void setStockCount(String stockCount) {
		this.stockCount = stockCount;
	}

	public String getDepositMoney() {
		return depositMoney;
	}

	public void setDepositMoney(String depositMoney) {
		this.depositMoney = depositMoney;
	}
}
